package org.mine.design.adapter.service.adapter;

import lombok.extern.slf4j.Slf4j;
import org.mine.design.adapter.service.DemoService;
import org.mine.design.adapter.service.impl.DemoServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class DemoAdapter implements DemoService {

    @Autowired
    private DemoServiceImpl demoService;

    @Override
    public void test() {
        log.info("适配器接口逻辑执行...");
        demoService.test();
    }
}
